package com.chris.blog.service;

import com.chris.blog.entity.po.CommentPO;
import com.github.pagehelper.Page;

import java.util.List;

public interface CommentService{


    int deleteByPrimaryKey(Integer id);

    int insert(CommentPO record);

    int insertSelective(CommentPO record);

    CommentPO selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(CommentPO record);

    int updateByPrimaryKey(CommentPO record);

    List<CommentPO> selectAllByTopic(Long topId);

    int count(String uid);

    Page<CommentPO> selectAllByUid(String uid);

    void deleteCommentByCid(String cid);
}
